Fix
Merge pull request #1 from vihangm/fix_zipf

return this.base instead of 0.