hopfield nn example using EJML