fixed sorting algorithms and added number generation program