hitting sets basic implementation