fixed typo and function name change
vectorized fully connected layer