Rectangular matrix multiplication in java. The Complexity of the above method.