added array prototype methods