CSAW (conditioned self-avoiding walk): computer simulation of protein folding