add some basic algorithms.