A method of fabricating a non-volatile memory is provided. The invention can be used for label-free detection of biological and chemical agents in a robust, miniaturized package. When enacted, the tool obtains statistical information related to the video data and information corresponding to functions of the code. The hard material composite coating according to the invention contains cubic TiAlCN and hexagonal AlN as main phases, wherein the cubic TiAlCN is microcrystalline fcc-Ti1-xAlxCyNz where x>0.