cleaned up CreateHomalgMatrixFromList somewhat