Add memchr,memrchr and corresponding test