Dual-logic-in-memory implementation with orthogonal polarization of van der Waals ferroelectric heterostructure