Using Similarity-Based Pattern Detection to Automate Pressure Transient Analysis