Exercises and implementations from "Information Retrieval".