Hum ... perhaps I didn't say things properly. I wanted to avoid using too much memory not that I couldn't use the memory. I was just wondering if there would be more efficient as with 10m numbers, that is using nearly a gig of memory. The problem of not getting 25th percentile as far as I'm aware isn't due to any memory issues.
Sorry if I cause confusion there.