Added algorithm includes

To satisfy std::min and std::max, which are in algorithm.