Use in-house remove algorithm

Uses the in-house array remove library function