Task for sorting us numbers with limit of memory