Stability of Three Layered Neural Networks and Their Simulations