Ref: improve getStackPivotDistance function

Hi there,

I'm doing research on stack pivoting and find mona's source code. The `getStackPivotDistance` function is kind of mess so I improved a little bit.

I've tested with Immunity Debugger with `!mona stackpivot` command, everything seems to be fine.