Restructed/fixed combined ranking scripts and used pseudo inverse in BPE