Fix bugs in inplace_merge and includes in algorithm component

Add additional tests for algorithm component