RBF network implementation. Using kmeans implemented by Professor Mello