Add IPP support in compare function
Merge pull request #1302 from kdrobnyh:compare