extend Array prototype