Added algorithm and purpose to header.