Update alg2.h

Alg2 now returns its results