This file contains several algorithms used in fys3150