adds the finding closests instruction to library