Add hash and update math.

hash: Added
math: use const&. Rename dot->operator^ cross->operator&.