calculating the maxwellian velocity distribution