renamed namespace engine to algorithm