Text this: G-HABC algorithm for training artificial neural networks