Computer science basic algorithms