LMS algorithm Python