added code for quick sort algorithm
Remove OOP as it was useless in this case.
Made functions modular instead.