added \ref to algorithm