Playing around with algorithms