Added basic algorithms.