mutation operator
function mutate_weights(weight_array) do
    foreach weight in weight_array do
         weight = weight + random_noise
    end
    return weight_array
end