Sample code for different Sorting and Tree algorithms