Linear graph with least square fit for the measurement of the rest mass energy of the elc