Added dataset creation convenience function, and passed xor test.