implemented trainXOR
Works