strncasecmp work done..
memrchr 100%
in some cases aux_ptr <= ptr <= aux_ptr + n seems to be useless. removed it in two functions