Level set method on adaptive Cartesian grids for multiphase flow computation