Converted getNextAndPrevious to Iterator object

- Updated PHPUnit report with new code
- Added simple example, more to come
- Simplified the algorithm a bit