Having fun with algorithms