Eliminated local encoding activation units. Added sparse boolean to real activation units, which is useful to represent bag-of-words and local encodings. Modified dot product action to take into account the possible sparsity of its inputs