removed unnecessary conditions in CreateHomalgMatrixFromList