DYN: get_eid and get_eids added

We use linear search instead of binary, which sucks.