Efficient Monitoring Techniques for Safety Critical Cyber-Physical Systems