Implemented basic detect algorithm with O(Detectable * Detector)