Almost Final version of Peak Finding