Implementation of some searching and sorting algorithms