Add algorithm script