macroify stuff
tidied up sum_p_x_s
I don't really support delete[]
add LN2=log(2) constant
calculate S in log base 2 units
added s statistics
fix reading from stdin