the python version of algs4 (algorithms fourth version by  Robert Sedgewick and Kevin Wayne)