Asymmetric nonlinear coupling and its applications to logic functions