Toy algorithms

Toy algorithms