add_to_top, traversal

Signed-off-by: Arnav Gupta <championswimmer@aokp.co>