[prefix-sharing] Fixed computation of the maximum possible entries for nodes.
[prefix-sharing] Improved existing test to check that neither insert nor deleting cause ArrayIndexOutOfBoundsException.