Study of data structure and algorithm form book  horowitz and sahni