Similar Items: Higher Order Automatic Differentiation of Higher Order Functions