A neural network based predictor of residue contacts in proteins