Different algorithms for selecting the 50 smallest integers out of 1 million