All terrorists to be rooted out from their hide outs: COAS