Dynamic learning in cognitive robotics through a procedural long term memory