Added a predict function, function to match superpixel labels to pixels and a test function