Created enum for algorithm