Added bias computation function for CNNs
Uniform interface for applylayer() for CNNs and other types