Autonomous Mobile Robot Control by a Neural Network with Dynamically-Rearranging Function