add <algorithm> for std::min, std::max
Merge pull request #138 from harrysummer/algorithm

add algorithm header for std::min, std::max