Introduction to Lattice Algebra (With Applications in AI, Pattern Recognition, Image Analysis, and Biomimetic Neural Networks)