Improved algorithm for back projection reconstruction algorithm