Removed MIN/MAX macros and replaced them by std::min/max.
Added separate math util header file.
Added function to do floor division towards -infinity.
Applied floordiv function in pos.cpp and fixed some indendations.