Added method to update element in B-tree