Ultracompact Computational Spectroscopy And Hyperspectral Imaging