Keras and Pytorch implementations of the Capsule Network architecture for handwritten digit recognition