Compare Array method is added

two arrays can be compared against its values
if the arrays are same then true is returned else false