Hebb and Mp neirons for logic gates