if (index < 0 || index > size + 1) {
if (index < 0 || index > size - 1) {
public void modifyEntry(int index, int newValue) {	        if (index < 0 || index > size + 1) {            throw new IndexOutOfBoundsException();        }//        ((int[]) bufferArrayList.get((int) (index / pageSize)))[index % pageSize] =        ((int[]) bufferArrayList.get((index >> exp)))[index & r] =            newValue;		}