Improved recovery management and routing in W-grid, a distributed infrastructure for effective and efficient multidimensional data management over wireless ad-hoc sensor networks