Fixed bug in searchChild and updated test2.

Ready for refactoring.
Refactored recursive insertion functions

Add specialized template leaf_page and
index_page. Need further refactoring.
Transformed insertEntry into a wrapper

the inner functions in insertEntry are
all implemented in template.