Basic algorithms on several languages