Fixed negative N.
Input by argv with: imgname1 imgname2 corrfilename threshold
Deleted unnecesary junk