own function for iteration step in order to get local estimation
working;
avoid use of ArrayImg, when primitive array suffices