added output for sequential algorithm