Add some simple algorithms within the lib folder