Initial solution for inheritance probability problem

This solution is a bit clunky, I have an idea for a generalization.
Refactor inheritance solution

I managed to generalize the probability function and also learned about how awk
implements multi-dimensional arrays. Or pretends to. :)