Scala/Step/Matrix Dimensions