All AMP function changed for new device_vector.

Added changes for Merge and Min/Max function in AMP as device_vector changed + Fix for serial and MultiCore path if i/p is device vector for Min Max Function.