A Heuristic Algorithm for Reconstructing Ancestral Gene Orders with Duplications