Implemented vectorized B-field Calculation