Implementation of exercises from the 'Think Complexity' book.