Include <algorithm>.

Visual studio was unable to find std::min and std::max.
Merge pull request #11 from vrsys/master

Include <algorithm>.