Binary weight network utilizing multi-functional spin-orbit torque device for image recognition