An implementation of the Palubicki tree generation algorithm