Initial push of basic algorithms.