new method and tests

method to consolidate two vectors