abs() wasn't declared -> cmath header added