Refactoring: extrected find_candlestick_patterns and added test