A random forest application to contact-state classification for robot programming by human demonstration