Implemented LSQ, FEstage, tests, and MEMstage