Modified averaging libary and its all test cases file
-Support averaging various datatypes for averaging such as integer, float and double -Includes null check, buffer size check, freeing of previous data, adding new data. -Replaced datatype from errorstatus to bool