* get_valid_count updated to have correct results * speedup nms * update nms * revert back nms * recover one test for get_valid_count