Changed array and matrix to element-wise. Added xor.
Merge pull request #256 from BigFav/develop

Changed array and matrix to element-wise. Added xor.