elementary sorts and stacks completed.