Smart Control Algorithms and Technology in Civil Infrastructures