Fix building solution.
Add some optimization to areArraysEqual