reducing matrix size - battling random travis heap space issues