Implementation of some age-old puzzles and algorithms