Algorithm for hydraulic fracturing and its application to the Tabaquite Field