Distributed implementation and design for state estimation