Teaching photogrammetry algorithms by dedicated software