#7 Fix. Used inv_P, fro_norm in both GPU. corrected a matrix Index
#7 Fix. fro_norm and p_inv used in cpu and gpu kernel