Bio-Inspired Computing Model and Algorithm