make.pconsecutive function

Make data consecutive (and, optionally, also balanced)