data structure  and alg  codes for a book