creates
mpriority
create_priorities(n,mpref,mpriority);