Data structures and algorithms - Aho, Alfred V (Pearson Education, 2002)