add

fun add(value: T, priority: Int)

Adds value to the list with specified priority Complexity: O(log n)