Explain the Bresenham line Algorithm as related to computer c++ programming language.