renaming variables in class "algorithm.php"