A bistable and reconfigurable molecular system with encodable bonds