code to add extra data to leaf nodes and code to reorder keys within the leaf nodes rewritten to better access curves
updated the leaf and leafprobe visitor functions for handling both degree 1 and 3 curves
update the max elements per leaf node for curve trees
some cosmetic changes.