Improved tool for boundary distortion based affine invariant analysis.

Replaced the old variants with new one along with functions to compute various statistics.