Added some Matrix class functionality and dotProduct to Vector