Code written for 'algorithmic techniques for scalable multi-core computing'