main function called by ctFIRE_1.m, for analyzing 2D image,  modified from fire.m in FIRE