Updated compute1D
Updated tests