Securing Safety-Critical Machine Learning Algorithms