vector implementation improved
tests improved