Analysis of cooling curve to determine the end point of freezing