Update alg1.h

Alg1 now returns its results