extend Array object prototype