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

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