There is no way that the genome encodes synaptic layouts to such a detail as to specify an algorithmic prior. At best it specifies, loosely, the generic architecture of how many neurons, how many layers, how tightly folded, and where the inputs (senses) connect. We develop the same algorithms because we all start with the same priors in largely the same gestational and early infant environments.
No, we don't "learn" how to balance, how to identify objects and navigate 3d environments. All of that is highly codified in our DNA from hundreds of millions of years of evolution. Human babies, similar to kangaroos, are just born too early for those systems to have developed.