Figured out how to learn all three transformations together

Figured out how to learn all three transformations together. Instead of
looking at the dot product of the input images at the top layer I am
looking at the dot product of images at the memory level or closer to
the end.