added algo script and updated readme