Add static class "Generic" for generic-methods

Add generic-method "Add"
Refactor adding element to array