Unified Manager

To improve speed, Unified Manager will be self contained in math
functions. change K to improve precision and hurt performance.