used to create mpriority and wpriority

create_priorities(n,pref,priority)