KMP Search algorithm that has simultaneous reverse searching