added hacker news ranking algorithm

now you can pass any ranking algorithm that takes ups, downs, and date
to getPostsWithVotes