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