Pattern Recognition for Knowledge Transfer in Robotic Assembly Planning