Analog-based Neural Network Implementation Using Hexagonal Boron Nitride Memristors