An experiment in the application of similarity-based learning to programming by example