added hebb learning style weight generation from patterns