update Item
Updates the provided item in the algorithm
Return
true if the item existed in the algorithm and was updated, or false if the item did not exist in the algorithm and the algorithm contents remain unchanged.
Parameters
item
the item to be updated