Implemented remove element and remove index for LinkedList
Modified LinkedList remove to return removed element