Added computeThresholdMultipleLocations, which just moves the cell and repeatedly calls computeThreshold. Added code for figure 4a to figure4 (but this won't work until computeThreshold is fixed). Also added static method thresholdError to calculate the % error (eqn 4).