Library for simulation of riggid bodies using neural networks and genetic algorithms