Computer simulation of foam structures as basis for „Machine Learning“