Adds topValues(k) and bottomValues(k) to dimension.