add ability to define definition of priority

Hi,

I use ```ds``` quite a lot - thanks for writing and releasing it. Here I add a new feature - I wanted to use a priority queue where lower numbers have more priority, not less. Apologies for the whitespace issues - my IDE was a bit overzealous.

ben