Added puzzle and algorithm factories.