initial commit of code to group detections into individual objects

This makes a table with assigned object numbers but hasn't grouped these objects together yet
I also haven't tested if its doing the right thing yet. Results seem reasonable.