Some ruby scripts to practice algorithm