Using a random forest to inspire a neural network and improving on it