getParents function

Get parents to corresponding animal IDs provided