Repaired quicksort and added loader

Quicksort was broken, it wasn't merging properly.
Created a loader which dynamically loads the scripts.