Cleaner implementation of local_subtensor_of_dot.
Removed commented code.