Creates a ListBuffer of given type T with given size. Each element is calculated by calling the specified initializer function.