Include <algorithm> from standard c++ library

std::max()" is not found on some configurations.

See robotology/yarp#134
Merge pull request #1 from drdanz/master

Include <algorithm> from standard c++ library