buildStabilityTable function

Finds how many iterations are necessary to achieve stability in resampling method.