Add remove() function to remove all items with given value from an array