Text this: Shortest chain code extraction from handwritten character using simulated annealing