Added the sorting algorithms

Added sorts to the BatterDB