Development of an Improved Gas-Kinetic BGK Scheme for Inviscid and Viscous Flows