add array functions of ES5