Binary logic operations with artificial molecular machines