Split matrix by all-zero columns