[prefix sharing] Fixed some of the issues caused by the right to left rebalancing. Delete massively tests seem to work now.
Merge remote-tracking branch 'origin/prefix-sharing' into prefix-sharing
[prefix sharing] Fixed the maximumNumberOfPossibleEntries() method. Also added a call to it in the BTreeFactory class.