all: move some alg. codes and alg. names to the libknot/consts.h

refs #2137

Change-Id: Ic8adef04228925e5c8131431c2a126d31310a488