added new edge detector and motion algo