Algorithms in C plus plus - Sedgewick, Robert (Addison-Wesley, 1992)