naive percepton algorithm