e.g. Spacing should be an in as it represents a pixel value. Double is fine in the algorithm but the output should be rounded. Function naming of algorithm steps is also not clear yet.