ok, I'm going to do Sedgewick in Python