A library for distributed neural networks