Implementing an Integrate-and-Fire Neural Network on a Bidirectional Brain-Computer Interface