Finished MAX aggregate function.
- Fixed small random code in MIN aggregate function.