Flexible nms

soft-nms inspired implementation of non maximum suppression algorithm.

In addition to reducing the detection scores of overlapped boxes, it performs weighted mean of very close box coordinates.