Partitioning matrices into multiples of 64