Added ABS algorithm