getOffspring function

Get offspring to corresponding animal IDs provided