changing params back to boost algorithms to avoid c++11