aggregate query processing in wireless sensor networ