Use complete algs4 tools library