fix: heuristically choose correct function for minors
add: idKeepFirstK() in ideals.cc
chg: rewrite idDelEquals based on qsort()
chg: incorporate some suggestions by Hans
Merge pull request #249 from steenpass/minor

Minor
chg: set blocks to keep to 0 for OM_NDEBUG