Use enum for selecting peak finding algorithm