moved back substitution method to Algorithm project