Added an alg. flag to main.

Now the main checks the alg. type to run and prints the percent match
info to stdout in a tab separated format.