Dead code
Comments to explain the whole algorithm