updated asignment 2 working ijk and Bijk