Added mathematical structs

- Added Rectangle(d) and Size(d)
- Moved hashing "magic numbers" into new static "Constants"-class for
clarity