Update 2 bit algorithm