Data structures and algorithms - Aho, Alfred (Addison- Wesley, 1998)