A Novel and Efficient Algorithm for Few-Shot Learning Tasks in Computer Vision