added a additional array bipsPerTree storing number of bips per tree