my_grep has been realised with KMP algorithm