adding data structure algos