Memristive pulse coupled neural network with applications in medical image processing