Silenced verbose in rakefile
Moved matrix code to lib dir