updated medianValue to use Collections.sort
Merge branch 'master' of https://github.com/zogwarg/PGM