Use of characteristics for boundaries in time dependent finite difference analysis of multidimensional gas dynamics