Adding simple algorithms