Hebbian-LMS algorithm and its application to clustering