A Pragmatic approach of localization and tracking algorithms in wireless sensor networks