programming tutorial absolute difference