adding pooling for bisort (haven't finished yet)