Performing Sorting and Searching operations