Added concept of extension to algorithms.