fix a bug in ordering the top end of multi-rank edges
synchronize with phenotips: 2013Dec19
new testcases + update to match new API
renamed files to better match their content
updated testcases
sync with phenotips - Jan 13 2014