copy the basis into
lower
's position
copy(&data[upper],&data[lower]);