Exercises based on the book Programming Collective Intelligence by Toby Segaran for extending the algorithms to make them more powerful