Removes a value from queue, in O(n)
value to remove
if true then remove all values equal to value, othetrwise only first matching value will be removed
number of removed values
See Implementation
Removes a value from queue, in O(n)