Add task complete/un-complete logic
Refactor array remove operation
Refactor array move operation and use for moveToHead. Fix priority assignment to new items.