Add missing <algorithm> include. Needed for std::max/min.

Change-Id: I6f016c2bca7c51f275c3b5abb78eb3641e5445dd
Fix VS2013 compilation. Add missing <algorithm> include. Needed for std::max

Co-authored-by: Dzenan Zukic <dzenan.zukic@kitware.com>