Neural networks without multipliers for pattern recognition