Include <algorithm> for std::min and std::max
Merge pull request #2 from cjfromthesea/patch-1

Include <algorithm> for std::min and std::max