COMP: Address a windows compilation error

fmin was replaced by std::min to address the windows compilation error