abs function
check if the lists are equals