Fixed and added a few tests for weighted median algorithm
Merge pull request #1 from tensorjack/master

Fixed and added a few tests for weighted median algorithm