A fast algorithm for the multiple genome rearrangement problem with weighted reversals and transpositions