Master Key Matrix operations in Machine Learning