Solving absolute value equations