Adding a 'removeAt' method to arrays