A New Algorithm for Efficient Pattern Matching with Swaps