Added matrix.scala.