new PCNN algorithm added, cont