Improvement for Array#equals()
Code compression and better documentation