Modified algorithm for converting base vectors