remove the now obsolete offset_flag code. This revealed a bug in the eigenmap precomputation. Please redo this step after syncing this code