Add getMinTagId functionality

as #25