simple Morris-Pratt