using global w and alpha vector for learning U, test error decrease but not the computational time