You can use NOT gate to make every thing
I did't count the diodes because i just used them because everycircuit couldn't find solution without it (note that i changed the junction capacitance to ignore the delay)
I made all other gates with NOT gate before ... check them out
Made In Kurdistan