Add classical implementation of basic algorithms