Fixed so that 0 is not always the first number
Added changes to communities.py to fascilitate moving node to empty
community. Added median of medians to functions.py (also renamed).