Robot Action Selection Learning via Layered Dimension Informed Program Synthesis