add iterator compare operators

- added operators < > <= >= for iterators
- slightly refactored iterators
- fixed style errors in vector.h and vector.cpp