Visualizer in Java for sparse arrays