Added sort and groupby operations to functional memory pool