Fix malloc(0) issue (#26) in cpp. Reduce cpp size and allow for larger inputs. Clean up unused variables in Smaller C.