Hopfield networks in Julia