Added batch calculation for a given range of patch sizes