added vector iteration (and tests)