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