Connection pool implementation

- Implemented #20
- Fixed #72