finish p14-15

p14: Duplicate the elements of a list.
p15: Replicate the elements of a list a given number of times.