changed is_permutation_matrix to operate on eigen3 matrix instead of SGMatrix, cleans things up a bit, hoping the memcpy was the issue and the print out is now cleaner too