replaced n.col method with n.row in gemmFitRcpp