created function to calculate BMI

created function to calculate BMI