A c++ implementation of KMP algorithm for exact string match