Implement the == and != operators for pointers.