findAQ1.c very close to correct running