Fixed UnboundLocalError of n_samples. Fixed typo.

The following error occurred when the program was running.
Traceback (most recent call last):
  File "kcca.py", line 467, in <module>
    scaler2=lambda x:x).fit(x1,x2)
  File "kcca.py", line 246, in fit
    (y1, y2, beta) = self.kcca(self.K1, self.K2)
  File "kcca.py", line 162, in kcca
    n_components = n_samples
UnboundLocalError: local variable 'n_samples' referenced before assignment