Ex 1, 3, (partially) 4.

* Using Criterion package for the performance tests of Ex.2 is not possible, due to issues with Windows 8