Dipolar Competitive Neural Network