A dynamic array with calloc
Changing precison with double instead of int
Switching from C++ to C