compiling algorithms at last