KEGG hierachy file parse and statistics