added base compare function
can now do compares with arrays