a private algrithm library