recognised why getMin() was always giving 0, (member field was initilising to 0 and empty constructor was being used to generate a node)- same code but lots of comments added