Text this: Study of cost functions in three term backpropagation for classification problems