Example algorithms (to be completed by my students)