#include <stdio.h>
#include <math.h>
#include <memory.h>
#include <malloc.h>
#ifdef __cplusplus
extern "C" {