creates
wpriority
create_priorities(n,wpref,wpriority);