Simple neural network which can learn basic gates like OR and AND