Modified the console based main and added code for the sorting and
searching functionality. Code is tested and running