Non-maximum suppression working