Extract initRank into its own module
Shorter and slightly more efficient initRank function
Simplifications since we assume edges have a `minLen` in rank phase