Optimality Criteria for LMS and Backpropagation