Made node object generic in a* implementation; fixed bug in AlignmentCost class; moved island selection responsibility out of node class.