Feature, re-factoring & minor bug fix

Add: output vector
Re-factor: RANK() moves to 'helper.h'
Re-factor: new function progress() in 'helper.h'
Fix: rank output when reading from file