maths::Matrix functions (almost?) entirely moved.

Moved the last of the member functions of the maths::Matrix class to the
header file.

Destructors now delete the entire data array in both maths::Vector &
maths::Matrix.

Added w() member function to maths::Vector.