Saving old implementation until new one is in place.
Set new implementation in place.
Corrected some minor issuses.
Added function to create timestamps for logging purposes.
Added functions to reshape matrices into vectors and back.
Added difference of masks to visualiser.