Legal and Ethical Issues of Algorithms, Artificial Intelligence, and Machine Learning