Using the kernel density estimation for a pattern classification task