Basic algorithms and programs that one ought to know!