Implemented smith-waterman context search.