Removed redundant definition of abs function