An Adaptable Boolean Neural Network Performing Specific Sequence Learning