Automatic algorithm recognition and replacement a new approach to program optimization - Metzger, Robert C. (MIT Press, 2000)