Merge pull request #1 from tensorjack/master

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

Remove wquantiles dependence, singleton dimensions; test case cleanup
weighted median bug
Fix weighted median zip-ordering bug