implementation of echo state network