Convolution and Pool layer Implementation