Resilient Coding Algorithms for Sensor Network Data Persistence