Normal equations method added.