fix: math functions (support for inferior C++14 standard)

add C++14 constexpr modifying algorithms