recursive implementation of 'equal?' using 'eq?'