update binary dict implementation