A Framework For Learning By Demonstration To Teach Your Robot Using K Nearest Neighbours And Visual Stimuli