Array in memory cache with sorting abilities