sorted vectors algorithm version1