Data gathering techniques in wireless sensor network