An algorithm for multi-resolution grid creation applied to explicit finite difference scheme