Conversion of gen trees into binary done