Improvements to CalculateDistances

new option -9 to ingore all pages with 9
or less formulae

Change-Id: Ic7bd3dcd2e19f269e281d5c11a2eb83c4f8772ae