Use C++ Mat object
Remove Arr object
Fix compilation on 5.4