Finite Element Method With Arraylist Sort