Basic algorithms taught in an undergrad school