Added basic block computation