utility codes/API from sedgewicks book -> sedgewicks.* packages. Jay's
is ph.zai.*