Reviewed some basic algorithms