Added size function to Matrix class.