add basic find outlier pattern in an array