Matrix operations that I am screwing around with in Java