added scala sorting algorithms