code: public ByteBuffer getElementAt(int index) {
          if (index >= elementsInBucket) {
              return null;
          } else {
              int chunk = index * gp.getElementSize() / memory[0].length;
              int offset = index * gp.getElementSize() % memory[0].length;
              return ByteBuffer.wrap(memory[chunk], offset, gp.getElementSize()).asReadOnlyBuffer();
          }
      }
docs: @return a ByteBuffer containing the requested element. The returned ByteBuffer is in read-only mode.
  
  @param index
  the index of the element in the bucket