int backward_search(char * str);
Searches for str through the previous characters, returns 1 and goes to the beginning of the string on success, else returns 0.