importing colsplit from reshape2
Modified hierarchy methods to handle missing.
Update.