added AddIndex function, optimized Set

AddIndex and Set shared code so i created a IndexLocation shared
function that returns the node location
added removeObject, removeIndex doesnt work =(