Reduces the state space from BHGbuilder output file and create a rate matrix for treekin