Using Capsule Networks for Image and Speech Recognition Problems