Logic-In-Memory Architecture For Min/Max Search