Optimization of Location Management Cost by Mobility Pattern