Update IKbandwidth.R

Fixed bug in the calculation of an intermediate bandwidth caused by a calculation on an incorrect subset of data.