implemented the non-maximal suppression filter