Implement offset and change rank algorithm
Merge remote-tracking branch 'origin/master' into gh-pages