added int() call to silence warning
changed declaration order to try to silence warning
Now modified rewiring_coefficient to separately sum increasing and decreasing z scores