Add abs function

Implemented the "absolute value" function. Sorry about all the end-of-line whitespace deletion.