The distance and median problems in the single-cut-or-join model with single-gene duplications