Closest pair

- Plot points
- Add new functions to common libs and write tests.