add savemodel and loadmodel, solve ann on xor data