Rewrite the List class for typed array