Description of a Real-Time Algorithm for Detecting