Searching for Head and Shoulders Bottom Patterns under Directional Changes