manacher untested version