Physics by Computer: Programming Physical Problems Using Mat