AlgorithmV1: added struct to fns

algorithmsV2: newly made fns for use with Hardware

main: added processing