practice
adding files needed to complete the hw
indexJ needs major clean up.  Reduce number of case statements.  Add helper functions.
fixed bad indexJ signature.
compiles but lots of warnings about shadowing mempty.
removed warnings.
less parens
cleaning up the code