add elapsed time and fix some alghrythms comments