Moved Vec and Mat classes into separate files, with accompanying scala
objects.