Application of second quantization methods to the classical statistical mechanics