remove octet_compare

strcmp provides the same functionality
refactored autocomplete_add

Now this function responsible for memory allocation
refactred autocomplete_remove
removed strdup in autocomplete calls
Fixed compiler warning in test_autocomplete.c