Finished Table finding algorithm