speed up numpy LCA by vectorizing Gram matrix calculation. LCA requires ...

...unit norm basis function.