Implemented Sort Function
Refactored Sort function
Unit test for sort added
Improved unit test for sort
added unit test for search function
Improved unit test for search
Refactored search function