Added sorting routines to top-level directory
Remove explicit profiling code