updated rank functions

pseudorank accepts priority as a parameter and returns pseudorank
added default parameter to pseudorank()

^ that stuff